package com.epam.productstore.util;

import java.util.ResourceBundle;

public class ResourceManager {
	private static final String BUNDLE_NAME = "resources.ApplicationResources";
	private static ResourceBundle resourceBundle = ResourceBundle.getBundle(BUNDLE_NAME);
	public static final String ADD_GOOD_XSL_PATH = "path.xsl.add";
	public static final String SAVE_GOOD_XSL_PATH = "path.xsl.save";
	public static final String XML_PATH = "path.xml";
	public static final String EMPTY_FIELD_MESSAGE = "message.emptyfield";
	public static final String INCORRECT_MODEL_MESSAGE = "message.incorrectmodel";
	public static final String INCORRECT_DATE_MESSAGE = "message.incorrectdate";
	public static final String INCORRECT_PRICE_MESSAGE = "message.incorrectprice";
	public static final String MODEL_PATTERN = "pattern.model";
	public static final String DATE_PATTERN = "pattern.date";
	public static final String PRICE_PATTERN = "pattern.price";
	
	public static String getProperty(String key){
		return resourceBundle.getString(key);
	}
}
